package mc2014.hackerthon.sharingphonebook;

import android.app.ActionBar;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class GroupActivity extends Activity 
{

	private Button groupMenuBtn;
	private TextView groupNameTv;
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_group);
		
		ActionBar actionbar = getActionBar();
		
		View actionbarCustomLayout = getLayoutInflater().inflate(R.layout.actionbar_group_layout,null);
		
		groupMenuBtn = (Button)actionbarCustomLayout.findViewById(R.id.group_menu_btn);
		groupNameTv = (TextView)actionbarCustomLayout.findViewById(R.id.group_name_tv);
		setName("그룹이이름");
		
		actionbar.setCustomView(actionbarCustomLayout,new ActionBar.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT,
				ActionBar.LayoutParams.MATCH_PARENT));
		
		actionbar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
		
	}
	
	public void setName(String groupName)
	{
		groupNameTv.setText(groupName);
	}
	
	 
	
}
